Skip to content

Silence warnings about String.init(validatingUTF8:) on Swift 6. #415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2024

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented May 14, 2024

Swift 6 deprecates String.init(validatingUTF8:) and replaces it with the identical String.init(validatingCString:). This change adopts the new API when compiling with Swift 6.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

Swift 6 deprecates `String.init(validatingUTF8:)` and replaces it with the
identical `String.init(validatingCString:)`. This change adopts the new API when
compiling with Swift 6.
@grynspan
Copy link
Contributor Author

@swift-ci please test

1 similar comment
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

Merging. Windows failure is a known issue.

@grynspan grynspan merged commit 46096ed into main May 15, 2024
2 of 3 checks passed
@grynspan grynspan deleted the jgrynspan/silence-validatingUTF8-warnings branch May 15, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants